lionsApp.factory('lionsHttp', ['httpConfig', '$resource', function (httpConfig, $resource) {
    return $resource('', {}, {
        indexList: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/auctionIndex/queryList',
            isArray: false
        },
        detail: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/auctionIndex/queryDetail',
            isArray: false
        },
        areaList: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/user/areaList',
            isArray: false
        },
        teamList: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/user/teamList',
            isArray: false
        },
        userList: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/user/userList',
            isArray: false
        },
        createAuction: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/auctionIndex/createAuction',
            isArray: false
        },
        myAuction: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/user/myAuction',
            isArray: false
        },
        checkBind: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/user/checkWechart',
            isArray: false
        },
        addBind: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/user/addWechart',
            isArray: false
        },
        rankUser: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/auctionRank/userList',
            isArray: false
        },
        rankTeam: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/auctionRank/teamList',
            isArray: false
        },
        offlineList: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/auctionIndex/findOffline',
            isArray: false
        },
        offlinePrice: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/auctionIndex/addAuction',
            isArray: false
        }
    })
}])
